home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Sound / MidI / BARS&PIPESPROF2,0-2.DMS / in.adf / Yak Source Code / YakSource.LZH / toolstart.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-16  |  511 b   |  25 lines

  1. #include "bppro.h"
  2.  
  3. long IntuitionBase;
  4. long GfxBase;
  5. long LayersBase;
  6. long DOSBase;
  7. long SysBase;
  8.  
  9. struct Functions *functions;
  10.  
  11. struct ToolMaster *inittoolmaster(void);
  12.  
  13. struct ToolMaster *__saveds start(struct Functions *f)
  14. {
  15.   if(f->version<5)      /* B&P Pro v 2.0 or better */
  16.       return 0;
  17.   functions=f;
  18.   SysBase=functions->SysBase;
  19.   DOSBase=functions->DOSBase;
  20.   IntuitionBase=functions->IntuitionBase;
  21.   GfxBase=functions->GfxBase;
  22.   LayersBase=functions->LayersBase;
  23.   return inittoolmaster();
  24. }
  25.